package com.gekko.activities;

import com.gekko.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;

public class SplashActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		
		Log.e("Debug", "Splash activity");

		Thread timer= new Thread()
	    {
	        public void run()
	        {
	            try
	            {
	                sleep(1000);
	            }
	            catch (InterruptedException e) 
	            {
	                // TODO: handle exception
	                e.printStackTrace();
	            }
	            finally
	            {   
	                
	            	boolean loggedIn = false;
	            	if(!loggedIn) {
	    				Intent i = new Intent(SplashActivity.this, LoginActivity.class);
	    				startActivity(i); 
	    			}
	            }
	        }
	    };
	    timer.start();
			
	}

}
